import axios from "../index.js";

// 查询日志类型
export const logTypes = () => {
  return axios.request({
    url: "/log/ng-audit-log/event/types",
    method: "get"
  });
};
export const sqbdr = data => {
  return axios.request({
    url: "/warning/regimen/export",
    method: "post",
    data
  });
};

export const doPageList = data => {
  return axios.request({
    url: "/warning/regimen/doPageList",
    method: "post",
    data
  });
};

export const downRegimen = () => {
  return axios.request({
    url: "/warning/regimen/downRegimen",
    method: "get",
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    responseType: "blob"
  });
};

export const getPageAuditLog = data => {
  return axios.request({
    url: "/log/ng-audit-log/getPageAuditLog",
    method: "post",
    data
  });
};


